package com.heima.mapper;

import com.github.pagehelper.Page;
import com.heima.pojo.Collaborator;
import com.heima.pojo.dto.CollaboratorPageDTO;
import com.heima.pojo.vo.CollaboratorVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CollaboratorMapper {

    void insert(CollaboratorVO vo);

    Page<Collaborator> query(CollaboratorPageDTO dto);

    @Delete("delete from tb_partner where id = #{id}")
    void deleyeId(Integer id);

    void upd(Collaborator collaborator);

@Select("select * from tb_partner  where id = #{id}")
    void getId(Integer id);
}
